
import { _decorator, Component, Node } from 'cc';
import { BarrierGroup } from './BarrierGroup';
import GameData from '../../Script/Common/GameData';
import { GlobalEnum } from '../../Script/GameSpecial/GlobalEnum';
const { ccclass, property } = _decorator;
/**靠右的墙壁 */
@ccclass('RightBarrierGroup')
export class RightBarrierGroup extends BarrierGroup {
    protected setData(data: { z: number }) {
        this.node.setPosition(0, 0, data.z);
        let collData = GameData.getData(GlobalEnum.GameDataType.CollItemData, this.node.name);
        let houDu = collData.houDu;
        this.minZ = data.z - houDu * 0.5;
        this.maxZ = this.minZ + houDu;
        this.minRadian = collData.minRadian;
        this.maxRadian = collData.maxRadian;
    }
}
